/*fixes bug where font was too bold in firefox*/
html {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  font-weight: 400;
}

@-moz-document url-prefix() {
  body {
    font-weight: lighter !important;
  }
}

/* MAIN FONTS */
.body-text {
    margin-top: 15px;
    margin-bottom: 0px;
    font-family: 'Source Sans Pro',arial,verdana,helvetica,sans-serif;
    color: black;
    text-align: justify;
}

.body-text:first-child{
    margin-top: 0px;
}

.title-text {
    font-family: 'Lato',arial,verdana,helvetica,sans-serif;
    text-align: center;
    font-size: 23px;
    color:#1e1e1e;
    font-weight: 400;

}

.heading-text{
    font-family: 'Lato',arial,verdana,helvetica,sans-serif;
    text-align: center;
    font-size: 30px;
    font-weight: 400;
    margin-top: 0px;
}
/* END */




html {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    width: calc(100%); /* 100%*/
    height: 100%;
    margin: 0;
}




/* MENU STUFF */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
}

banner {
    /* This aligns the banner in the center despite its position absolute
    position: absolute;
    left: calc(50% - 5px);
    transform: translate(-50%, 0%);*/

    display: flex;
    flex-direction: row;
    align-items: center;
    align-items: center;
    justify-content: space-around;

    width: calc(100% - (2*5px));  /* 100% - 2 * padding(banner) */
    height: 105px;
    padding: 20px 5px 200px 5px;
    margin: 0 0 0px 0;
    background-color: cadetblue;
}

.logo-icon {
    height: 100%;
    border-radius: 100px;
}

.navbar-link-text {
    margin: 0 0 0 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: white;
    text-shadow: 0 2px 4px rgba(30, 30, 30, 0.11), 0 -3px 8px rgba(30, 30, 30, 0.11);
}

.navbar-link {
    padding: 5px 5px;
    margin: 0 15px 5px 15px;
    text-align: center;
    //border-bottom: 2px solid rgba(0, 0, 0, 0);
}

.navbar-link:last-child {
    padding: 5px 0px 5px 5px;
    margin: 0 0px 5px 15px;
}

.navbar-link a {
    text-decoration: none; 
}


.navbar-link a:hover {
    cursor: pointer;
    //border-bottom: 2px solid #E11C1A;
}

.navbar-link a:hover .navbar-underline {
    width: 100%;
}

.navbar-underline {
    width: 0%;
    height: 2px;
    background-color: #E11C1A;
    -webkit-transition: width 0.15s ease;
    transition: width 0.15s ease;
}

.front-page-container {
    width: 100%;
    background-color: floralwhite;
    background-position: top;
    background-repeat: repeat-x;
    overflow: hidden;
    position: relative;
    min-height: 100%;
}

.links-and-search-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 80%;
}

.search-icon {
    height: 22px;
    width: 22px;
    background-image: url(http://serci.org/pictures/search_icon.png);
    background-repeat: no-repeat;
    background-color: #E11C1A;
    border: none;
    border-radius: 3px;
    color: transparent;
    vertical-align: top;
}
            
.search-box {
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    padding-left: 6px;
    border-radius: 2px;
    width: 170px;
    -webkit-transition: width 0.5s ease;
    transition: width 0.5s ease;
    color: rgb(253, 253, 253);
    font-family: 'Open Sans',verdana,arial,helvetica,sans-serif;
    font-size: 14.5px;

}

.search-box:focus {
    width: 360px;
}

.search-icon:hover {
    filter: brightness(1.06);
    cursor: pointer;
}

.title-font{
    font-family: 'Inria Serif',arial,verdana,helvetica,sans-serif;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(30, 30, 30, 0.11), 0 -3px 8px rgba(30, 30, 30, 0.11);
    font-weight: 300;
    font-style: italic;
}

.title-text-container .title-font {
    color: white;
}

.title-text-container {
    width: 195px;
    margin-left: 8px;
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}   
/* END */



/* MAIN CONTENT STUFF */
.content {
    position: relative;
    margin: -165px auto 170px auto;
    padding: 20px 18px 30px 18px;
    width: calc(100% - 2 * 18px); /* 100% - padding(content) */
    max-width: 900px;
    overflow: auto; /* force it to recognise it has children */
    box-shadow: 0 4px 8px 0 rgba(30, 30, 30, 0.4), 0 8px 30px 0 rgba(30, 30, 30, 0.4), 0 -4px 30px 0 rgba(30, 30, 30, 0.1);
    z-index: 3;
    min-height: 400px;
}

.svg-wave { 
    height: 200px; 
    width: 100%; 
    min-width: 900px;
}

.svg-wave-container {
    display: flex;
    justify-content: center;
    position: absolute;
    left: 0px;
    width: 100%; 
    overflow: hidden;
}


.scroll-down-content {
    width: 95%;
    margin: 0 auto;
}

.side-box{
    width: 220px;
    /*border: 2px solid rgba(70, 70, 70, 1.0);*/
    float: right;
    margin-top: 20px;
    
}

.financial-members-box{
    padding-top: 0.5px;
    height: 350px;
    border-radius: 2px;
    box-shadow: 0 4px 8px 0 rgba(30, 30, 30, 0.1), 0 8px 30px 0 rgba(30, 30, 30, 0.1);
}

.financial-members-box, .mobile-financial-members-box {
    background-color: #5f9ea08f;
}

.side-box-text{
    font-size: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(30, 30, 30, 0.11), 0 -3px 8px rgba(30, 30, 30, 0.11);
}

.side-box-img{
    width: 180px;
    margin: 0px 0px 17px 20px;
    display: block;
}

.twitter-feed{
    margin-top: 20px;
    width: 220px;
    float: right;
    box-shadow: 0 4px 8px 0 rgba(30, 30, 30, 0.1), 0 8px 30px 0 rgba(30, 30, 30, 0.1);
}

/* NEWS ARTICLE STUFF */
.news-heading-text{
    font-family: 'Lato',arial,verdana,helvetica,sans-serif;
    font-size: 23px;
    color: white;
    margin: 0px 0px 0px 0px;
}

.news-article-img{
    width: 100%;
    height: 100%;
}

.news-article{
    margin-top: 20px;
    width: 600px;
    height: 337px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 4px 8px 0 rgba(30, 30, 30, 0.2), 0 8px 30px 0 rgba(30, 30, 30, 0.2);
    float: left; 
}

.news-article-heading-box{
    background-color: rgba(30, 30, 30, 0.85);
    position: absolute;
    bottom: 0px;
    width: calc(100% - 2*12px);
    padding: 7px 12px 7px 12px;
    margin: 0px;
    height: 46px;
    webkit-transition: height 1s; /*This is now handled in javascript*/
    transition: height 1s;
    -webkit-font-smoothing: antialiased;   /* Fixes this issue https://bit.ly/2KcVFJP*/
    border-top: 1px solid #E11C1A;
}

.news-article:hover .news-article-heading-box{
    height: 95.6% !important; /*needs to be important so that the inline height set in the javascript function set_up_articles can be over-ridden*/
}

.news-text{
    margin: 0px;
    color: white;
    text-align: justify;
}

.news-article-text-box{
    margin-top: 10px;
}

.news-date-text{
    font-size: 12px;
    color: white;
    margin: 0px;
    
}

.article-img{
    width: 270px;
    float: right;
    margin: 10px;
    margin-bottom: 0px;
    margin-right: 0px;
}

.click-to-view{
    color: #64bef3;
}

.click-to-view:hover {
    text-decoration: underline;
}

.menu-article-link{
    margin: 0px;
    text-decoration: none;
    color: white;
}

/* END */

footer {
    width: 100%;
    height: 200px;
    background-color: cadetblue;
    position: absolute;
    bottom: 0;
}

/* END */
